import state from '@/store'

export default {
  methods: {
    // 检查本地用户信息 是否有按钮权限
    checkPermission(key) {
      if (state.getters.points) {
        return state.getters.points.some(item => item === key)
      }
      return false
    }
  }
}

